<template>
  <div class="person-wrap">
    <div class="bottom-table-item bottom-table-header">
      <div class="dd" style="width: 100%">重点人员标签</div>
    </div>
    <div class="info-wrap">
      <div class="info-item"><span style="color: #ffff00">重点人员358人</span></div>
      <div class="info-item"><span style="color: #ffff00">已宣传130人</span></div>
      <div class="info-item"><span>{{characterList[0].data_num}}</span></div>
      <div class="info-item"><span >{{characterList[1].data_num}}</span></div>
      <div class="info-item"><span >{{characterList[2].data_num}}</span></div>
      <div class="info-item"><span>{{characterList[3].data_num}}</span></div>
    </div>
  </div>
</template>
<script>
    import commonDialog from '@/components/commonDialog/common.dialog'
    import commonForm from '@/components/commonForm/commonForm.component'
    import API from "@/api/index.api";
    export default {
        components: {
            // commonDialog,
            // commonForm,
        },
        data () {
            return {
              characterList:[]
            }
        },
        methods: {
          getCharacter_portraits () {
            API.character_portraits().then(res=>{
              this.characterList=res.content;
            })
          },

        },
        mounted() {
          this.getCharacter_portraits()
        }
    }
</script>
<style lang="stylus" scoped>
  @keyframes scan-beam {
    0% {
      top: 90%;
      width: 40%;
      height: 20px; // 光带高度
    }  // 光带从顶部外开始
    100% {
      top: 20%;
      width: 120%;
      height: 2px; // 光带高度
    } // 光带移动到底部外
  }

  .person-wrap{
    height: 100%;
    position: relative;
    // 扫描光带
    &:before {
      content: '';
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      top: 0;
      width: 100%;
      height: 10px; // 光带高度
      background: linear-gradient(
        to right,
        transparent,
        rgb(146, 234, 251), // 使用你的主题色 (#00d9ff)
        transparent
      );
      animation: scan-beam 2.5s infinite linear;
      pointer-events: none; // 避免遮挡点击
    }

    &:after{
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-image: url("../../assets/img/putuo/person_bg.png");
      background-size: 100% 100%;
      pointer-events: none; // 避免遮挡点击事件

    }
    .info-wrap {
      padding: 0 10px;
      padding-top: 60px;
      .info-item {
        cursor: pointer;
        margin-top: 5px;
          font-size: 30px;
        span{
          color: #00d9ff;
          //border-bottom: 1px solid #eee;
        }
      }
      .info-item:nth-child(even){
        text-align: right;
      }
    }
    .bottom-table-header{
      position: absolute;
      width: 100%;
      top: 0;
      left: 0;
      z-index: 1;
      background: #0d364d;
      display: flex;
      padding: 5px 0;

    }
    .bottom-table-item:nth-child(even){
      background: #144066;
    }

    .dd{
      text-align: center;
      color: #b6c3c9 !important;
      font-size: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
  @media screen and (max-width: 1920px) {
      .info-item{
          font-size: 16px!important;
      }
  }
</style>
